<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>业务模块-订单</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" /></head>

<body class="childrenBody">
<form class="layui-form">
	<input type="hidden" id="id" name="id" value="${webOrder.id}" />
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;活动id</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webSignUp.title}" disabled /></div>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;姓名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.name}" disabled/></div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;出生日期</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${(webOrder.brithday?string('yyyy-MM-dd'))!''}" disabled/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;性别</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" id="sex" disabled/>
		</div>
	</div>
	<#if webOrder.userType=='1'>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;政治面貌</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" value="${webOrder.political}" disabled/></div>
		</div>
	</#if>

	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;民族</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.nation}" disabled/></div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;联系电话</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.phone}" disabled/></div>
	</div>
	<#if webOrder.userType=='2'>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;学生年级</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" id="studentGrade" disabled/>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;就读学校</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" id="studentSchool" disabled/>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;家长姓名</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" value="${webOrder.parentName}" disabled/></div>
		</div>
	</#if>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;工作地址</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.workAddress}" disabled/></div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;家庭地址</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.homeAddress}" disabled/></div>
	</div>
	<#if webOrder.userType=='1'>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;身份证</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" value="${webOrder.idCard}" disabled/></div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;身份证图片</label>
			<div class="layui-input-block">
				<img src="${webOrder.idCardPicture}" style="width: 120px; height: 80px;" class="showPicture"/>
			</div>
		</div>
	</#if>


	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;照片</label>
		<div class="layui-input-block">
			<img src="${webOrder.headImage}" style="width: 120px; height: 80px;" class="showPicture"/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">
			<span class="red">*</span>&nbsp;&nbsp;申请时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" value="${webOrder.createTime?string('yyyy-MM-dd HH:mm:ss')}" disabled/></div>
	</div>
	<#if webOrder.status=='1'>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;审核状态</label>
			<div class="layui-input-block">
				<select class="form-control" name="status" lay-verify="required" id="status"></select>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red"></span>&nbsp;&nbsp;描述信息</label>
			<div class="layui-input-block">
				<textarea class="layui-textarea" name="checkRemark" lay-verify="content" placeholder="请输入描述信息">${webOrder.checkRemark}</textarea></div>
		</div>

		<div class="layui-form-item layui-row layui-col-xs12">
			<div class="layui-input-block">
				<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submitBtn">确定</button>
				<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary cancel">取消</button></div>
		</div>
	</#if>
	<#if webOrder.status!='1'>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;审核状态</label>
			<div class="layui-input-block">
				<#if webOrder.status=='2'>
					<input type="text" class="layui-input" value="审核通过" disabled/>
				</#if>
				<#if webOrder.status=='3'>
					<input type="text" class="layui-input" value="审核不通过" disabled/>
				</#if>
			</div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red">*</span>&nbsp;&nbsp;审核时间</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input" value="${webOrder.checkTime?string('yyyy-MM-dd HH:mm:ss')}" disabled/></div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">
				<span class="red"></span>&nbsp;&nbsp;描述信息</label>
			<div class="layui-input-block">
				<textarea class="layui-textarea" disabled lay-verify="content" placeholder="请输入描述信息">${webOrder.checkRemark}</textarea></div>
		</div>
		<div class="layui-form-item layui-row layui-col-xs12">
			<div class="layui-input-block">
				<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary cancel">取消</button></div>
		</div>
	</#if>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript">layui.use(['form', 'jquery', 'baseUtil', 'pageUtil', 'fileUtil'],
    function() {
        var form = layui.form,
            $ = layui.jquery,
            fileUtil = layui.fileUtil,
            baseUtil = layui.baseUtil,
            pageUtil = layui.pageUtil;
        $(".showPicture").bind("click",function () {
            fileUtil.imageSingleShow($(this).attr("src"));
        });
        pageUtil.initDict("base_check_status,base_sex,web_school,web_grade",
            function(dictData) {
                $("#studentSchool").val( pageUtil.aceeptDictContentName(dictData, "web_school",'${webOrder.studentSchool}'));
                $("#studentGrade").val( pageUtil.aceeptDictContentName(dictData, "web_grade",'${webOrder.studentGrade}'));
                $("#sex").val( pageUtil.aceeptDictContentName(dictData, "base_sex",'${webOrder.sex}'));
                pageUtil.showDict($("#status"), pageUtil.aceeptDictContentList(dictData, "base_check_status"), "", '${webOrder.status}');
            });
        form.on('submit(submitBtn)',
            function(data) {
                baseUtil.postMethodResult("/webOrder/addOrUpdate", data.field,
                    function(result) {
                        parent.location.reload();
                    });
                return false;
            });
    });</script>
</body>

</html>